package com.ygl.lucene;

import com.ygl.lucene.service.LuceneService;
import org.junit.Test;

/**
 * @Author yanggld
 * @Date 2019/5/16-10:00
 * @Description
 */
public class Application {

    @Test
    public void createIndex() {
        LuceneService luceneService = new LuceneService();
        try {
            luceneService.createIndex();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void searchIndex() {
        LuceneService luceneService = new LuceneService();
        try {
            luceneService.searchIndex("企业的文化");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
